package com.jl.cloud.commom.aspect;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 注解分布式锁
 * @author liang.jun
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface DistributedLock {

    String key() default "";

    /** 锁等待，默认5s */
    int waitTime() default 5000;

    /** 锁超时，默认30s */
    int leaseTime() default 3000;





}
